package me.sealer.demo;

/**
 * Created by sealer on 05-26-2017.
 */
public class EnumTest {
    public static void main(String[] args) {
        for (Day day : Day.values()) {
            System.out.println(day);
        }

        chooseDay(Day.SUN);
        chooseDay(Day.MON);

    }

    public static void chooseDay(Day day) {
        switch (day) {
            case MON:
            case TUE:
            case WED:
            case THU:
            case FRI:
                System.out.println("this is a workday");
                break;

            case SAT:
            case SUN:
                System.out.println("this is a weekday");
                break;

            default:
                System.out.println("nothing!");
        }
    }

    public enum Day {
        MON, TUE, WED, THU, FRI, SAT, SUN;
    }


}


